/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package tubes1sister;

/**
 *
 * @author Muhammad Anis
 * Berisi tentang data yang akan disimpan pada data metainfo
 */
public class metainfo {
     public String filename;
     public long filelength;
     public int piecelength;
     public String pieces;
     public String announce;

     //constructor
     public metainfo(String filename,byte filelength,byte piecelength,String pieces, String announce){
         this.filename = filename;
         this.filelength = filelength;
         this.piecelength = piecelength;
         this.pieces = pieces;
         this.announce = announce;
     }
     //constructor sederhana
     public metainfo(){
         //do nothing
     }

     public void print()
     {
         System.out.println("File Name : " + filename);
         System.out.println("File Length : " + filelength);
         System.out.println("Piece Length : " + piecelength);
         System.out.println("Announce : " + announce);
         System.out.println("Pieces : " + pieces);
     }
     
     
     
}
